<table class="table table-bordered table-hover table-striped" style="width: 1500px;">
	<tbody>
		<!--编号、合同号、房间号、订单号、OPID、支付方式、费用类型、支付金额、支付时间、下载收据-->
		<tr align="center">
			<td><strong>编号</strong></td>
			<td><strong>客户</strong></td>
			<td><strong>合同号</strong></td>
			<td><strong>房号</strong></td>
			<td><strong>押金</strong></td>
			<td><strong>房租</strong></td>
			<td><strong>定金</strong></td>
			<td><strong>物业费</strong></td>
			<td><strong>水电气费</strong></td>
			<td><strong>其他</strong></td>
			<td><strong>合计</strong></td>
			<td><strong>支付状态</strong></td>
			<td width="100"><strong>现金</strong></td>
			<td width="100"><strong>拉卡拉</strong></td>
			<td width="100"><strong>微信</strong></td>
			<td width="100"><strong>支付宝</strong></td>
			<td><strong>日期</strong></td>
			
			<td><strong>备注</strong></td>
		</tr>
		<foreach name="list" item="ls">
			<tr align="center">
				<td>{$ls['id']}</td>
				<td>{$ls['nickname']}</td>
				<td>{$ls['contract']}</td>
				<td>{$ls['roomnumber']}</td>
				<td>{$ls['deposit']}</td>
				<td>{$ls['rent']}</td>
				<td>{$ls['deposit_first']}</td>
				<td>{$ls['property']}</td>
				<td>{$ls['water_power']}</td>
				<td>{$ls['other']}</td>
				<td>{$ls['acount']}</td>
				<td>
					<?php
						switch($ls['status']){
							case 0:
								echo '未支付';
							break;
							case 1:
								echo '成功';
							break;
							case 2:
								echo $ls['weixin'] > 0 ? '支付宝已支付,微信未支付' : '支付宝已支付';
							break;
							case 3:
								echo $ls['alipay'] > 0 ? '微信已支付,支付宝未支付' : '微信已支付';
							break;
						}
					?>
				</td>
				<td>{$ls['xianjin']}</td>
				<td>{$ls['lakala']}</td>
				<td>{$ls['weixin']}</td>
				<td>{$ls['alipay']}</td>
				<td><?php echo date('Y-m-d H:i', $ls['createtime']); ?></td>
				
				<td>{$ls['remark']}</td>
			</tr>
		</foreach>	
	</tbody>
</table>
<div class="pagination" style="float: right; widht: 95%">
	<include file="Common/page" />
</div>